<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="EmpleadoViewDlg" widgetVar="EmpleadoViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewEmpleadoTitle}">

            <h:form id="EmpleadoViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{empleadoController.selected != null}">

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_idEmpleado}"/>
                        <h:outputText value="#{empleadoController.selected.idEmpleado}" title="#{bundle.ViewEmpleadoTitle_idEmpleado}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_cedula}"/>
                        <h:outputText value="#{empleadoController.selected.cedula}" title="#{bundle.ViewEmpleadoTitle_cedula}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_nombres}"/>
                        <h:outputText value="#{empleadoController.selected.nombres}" title="#{bundle.ViewEmpleadoTitle_nombres}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_apellidos}"/>
                        <h:outputText value="#{empleadoController.selected.apellidos}" title="#{bundle.ViewEmpleadoTitle_apellidos}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_direccion}"/>
                        <h:outputText value="#{empleadoController.selected.direccion}" title="#{bundle.ViewEmpleadoTitle_direccion}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_telefonoCelular}"/>
                        <h:outputText value="#{empleadoController.selected.telefonoCelular}" title="#{bundle.ViewEmpleadoTitle_telefonoCelular}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_telefonoHogar}"/>
                        <h:outputText value="#{empleadoController.selected.telefonoHogar}" title="#{bundle.ViewEmpleadoTitle_telefonoHogar}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_foto}"/>
                        <h:outputText value="#{empleadoController.selected.foto}" title="#{bundle.ViewEmpleadoTitle_foto}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_fechaNacimiento}"/>
                        <h:outputText value="#{empleadoController.selected.fechaNacimiento}" title="#{bundle.ViewEmpleadoTitle_fechaNacimiento}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_fechaIngreso}"/>
                        <h:outputText value="#{empleadoController.selected.fechaIngreso}" title="#{bundle.ViewEmpleadoTitle_fechaIngreso}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_diaList}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_areasidAreas}"/>
                        <h:outputText value="#{empleadoController.selected.areasidAreas.descripcion}"/>

                        <h:outputText value="#{bundle.ViewEmpleadoLabel_cargoidCargo}"/>
                        <h:outputText value="#{empleadoController.selected.cargoidCargo.descripcion}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="EmpleadoViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
